package com.yazi.mxz.common.entity.beans;

import com.myframework.smhj.hibernate.Entity;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Feedback entity. @author MyEclipse Persistence Tools
 */
@javax.persistence.Entity
@Table(name = "MXZ_FEEDBACK", schema = "MXZ")
public class Feedback extends Entity implements java.io.Serializable {

	// Fields

	private Long feedbackId;
	private String ip;
	private Long addTime;
	private String content;
	private String contact;

	// Constructors

	/** default constructor */
	public Feedback() {
	}

	/** minimal constructor */
	public Feedback(Long addTime, String content) {
		this.addTime = addTime;
		this.content = content;
	}

	/** full constructor */
	public Feedback(String ip, Long addTime, String content, String contact) {
		this.ip = ip;
		this.addTime = addTime;
		this.content = content;
		this.contact = contact;
	}

	// Property accessors
	@SequenceGenerator(name = "generator", sequenceName = "SEQ_FEEDBACK")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "FEEDBACK_ID", unique = true, nullable = false, precision = 15, scale = 0)
	public Long getFeedbackId() {
		return this.feedbackId;
	}

	public void setFeedbackId(Long feedbackId) {
		this.feedbackId = feedbackId;
	}

	@Column(name = "IP", length = 20)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Column(name = "ADD_TIME", nullable = false, precision = 15, scale = 0)
	public Long getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Long addTime) {
		this.addTime = addTime;
	}

	@Column(name = "CONTENT", nullable = false, length = 600)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "CONTACT", length = 100)
	public String getContact() {
		return this.contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

}